package cn.IT.service;

import java.io.Serializable;
import java.util.List;

import cn.IT.domain.Topic;
import cn.IT.domain.User;

public interface ITopicService {

	public List<Topic> getAllTopics();

	public Topic isTitleExist(Topic topic);

	public void addTopic(Topic topic);
    
	public List<Topic> searchByTitle(String searchContent);
	
	public List<Topic> searchByType(String searchContent);
	
	public Topic getTopicById(Serializable topicId);

	public List<Topic> findAllTopicsByUser(User user);

	public String delTopic(Topic topic, User user);

	public List<Topic> getNewsByToUser(User user);

	public String updateNewsByToUser(User user);
	
}
